package com.shqcjd.sinopecdemomobile.ui.adapter;

import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shqcjd.sinopecdemomobile.R;
import com.shqcjd.sinopecdemomobile.model.pojo.ExpertReplyListBean;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by sy on 2019/5/14.
 */

public class UnansweredAdapter extends BaseQuickAdapter<ExpertReplyListBean.ListBean,UnansweredAdapter.ViewHolder> {

    public UnansweredAdapter() {
        super(R.layout.item_unanswered_layout);
    }

    @Override
    protected void convert(UnansweredAdapter.ViewHolder helper, ExpertReplyListBean.ListBean item) {
        helper.tv_title.setText("" + item.projectName);
        helper.tv_user_name.setText("现场人员："+item.executorUserName);
        helper.tv_time.setText("提交时间："+item.submitTime);

    }

    class ViewHolder extends BaseViewHolder {
        @BindView(R.id.tv_title)
        TextView tv_title;
        @BindView(R.id.tv_user_name)
        TextView tv_user_name;
        @BindView(R.id.tv_time)
        TextView tv_time;
        @BindView(R.id.tv_show_btn)
        TextView tv_show_btn;
        public ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }

}
